<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('level/index')}">等级列表</a></li>
			<li class="active"><a href="{:url('level/director')}">董事设置</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('level/director')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>直推等级</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="level">
						<foreach name="level_list" item="vo">
							<if isset($row['level'])>
								<option value="{$vo.num}" <if $row.level == $vo.num>selected</if> >{$vo.name}</option>
							<else/>
								<option value="{$vo.num}">{$vo.name}</option>
							</if>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>直推等级人数</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="num" value="{$row.num|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>直推净充值额</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="total" value="{$row.total|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>除去团队流水</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="remove" value="{$row.remove|default=''}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>分佣（百分比）</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="share" value="{$row.share|default=''}">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-primary js-ajax-dialog-btn" data-msg="确定要升级吗？" href="{:url('portal/share/director')}">升级</a>
					<a class="btn btn-primary js-ajax-dialog-btn" data-msg="确定要分红吗？" href="{:url('portal/share/director_share')}">分红</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>